package com.itheima01.day08;

/**
 * @author 刘全
 * @date 2021/7/9
 */
public class String5 {
    public static void main(String[] args) {
        String a= "张三,李四,王五,10,20,30";
         String[] sArr=a.split(",");
        for (int i = 0; i < sArr.length; i++) {
            System.out.println(sArr[i]);
        }
    }
}
